package com.hai.books.service.Impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hai.books.entity.BookInfo;
import com.hai.books.mapper.BookInfoMapper;
import com.hai.books.service.BookInfoService;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BookInfoServiceImpl extends ServiceImpl<BookInfoMapper, BookInfo> implements BookInfoService {

    @Autowired
    BookInfoMapper bookInfoMapper;


    @Override
    public List<BookInfo> queryBookInfoList(Map<String, Object> map) {
        return bookInfoMapper.queryBookInfoList(map);
    }

    @Override
    public int queryBookIfoCount(Map<String, Object> map) {
        return bookInfoMapper.queryBookIfoCount(map);
    }

    @Override
    public int updateBook(int bookid) {
        return bookInfoMapper.updateBook(bookid);
    }


}
